package com.gjw.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gjw.blog.entity.Post;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gjw199513
 * @since 2019-11-06
 */
public interface PostService extends IService<Post> {

    /**
     * 初始化首页的周评论排行榜
     */
    void initIndexWeekRank();

    IPage paging(Page page, Long categoryId, String order);
}
